import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

/**
 *Created by Jcy
 *on 2021/9/27
 */
class JhText {
  static Widget cText(
      String? title, int? color, FontWeight? fontWeight, double fontSize,
      {int? maxLines, TextOverflow? overflow}) {
    return Text(
      title!,
      maxLines: maxLines,
      overflow: overflow,
      style: TextStyle(
          color: Color(color == null ? 0xff2b2b2b : color),
          fontWeight: fontWeight == null ? FontWeight.w400 : fontWeight,
          fontSize: fontSize.sp),
    );
  }
}
